//
//  KZTimeCountDownView.h
//  听说弱点强化训练
//
//  Created by 朱凯 on 2018/10/22.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "KZRecordingView.h"
#import "KZTurmpetView.h"

typedef enum : NSUInteger {
    KZTimeCountDownContentTypePlayVoice = 0,        // 播放音频
    KZTimeCountDownContentTypeRecordingFirst,       // 首次录音
    KZTimeCountDownContentTypeRecordingAgain,       // 再次录音
    KZTimeCountDownContentTypeWait,                 // 预读时间
    KZTimeCountDownContentTypeReadytoAnswer,        // 回答时间
} KZTimeCountDownContentType;

/**
 倒计时
 */
@interface KZTimeCountDownView : UIView


- (instancetype)initWithContentType:(KZTimeCountDownContentType)type;
- (instancetype)initWithContentType:(KZTimeCountDownContentType)type withTime:(NSInteger)totalTime;

@property (nonatomic, assign) CGFloat time;
@property (nonatomic, assign) CGFloat totalTime;
@property (nonatomic, strong) KZRecordingView *recordingView;
@property (nonatomic, strong) KZTurmpetView *turmpetView;

- (void)reset;

@end
